package com.jinyuan.request;

import com.jinyuan.service.MobileApplication;

/**
 * 请求地址
 * 
 * @author azuryleaves
 * @since 2013-9-10 下午4:37:32
 * @version 1.0
 * 
 */
public class RequestURL {

	public static String http = "http://" + MobileApplication.preferences.getString("http", "");

	// -- 登陆
	public static String getLogin() {
		return http + "/party/j_spring_security_check";
	}

	// -- 退出
	public static String getLogout() {
		return http + "/party/j_spring_security_logout";
	}

	// -- 注册
	public static String getRegister() {
		return http + "/party/no/login/train/signup";
	}
	
	// -- 更新-检查
	public static String getUpdateVersionCheck() {
		return http + "/party/no/login/apk/find/University_ideology_and_politics_signed.apk";
	}

	// -- 更新-下载
	public static String getUpdateDownLoadFile(String id) {
		return http + "/party/no/login/apk/download/" + id;
	}

	// -- 首页
	public static String getHomePage() {
		return http + "/party/no/login/teaching/first";
	}

	// -- 教学动态-列表
	public static String getEduList() {
		return http + "/party/no/login/teaching/list";
	}

	// -- 教学动态-详情
	public static String getEduDetail(String id) {
		return http + "/party/no/login/teaching/html?id=" + id;
	}

	// -- 培训报名
	public static String getRegisterForTrain() {
		return http + "/party/login/train/signup";
	}

	// -- 培训报名-课程、省份
	public static String getRegisterForTrainCourse() {
		return http + "/party/login/train/option";
	}

	// -- 培训信息-列表
	public static String getTrainInfoList() {
		return http + "/party/login/training/list";
	}

	// -- 培训信息-详情
	public static String getTrainInfoDetail(String id) {
		return http + "/party/login/training/html?id=" + id;
	}

	// -- 导刊信息-列表
	public static String getGuideInfoList() {
		return http + "/party/login/guider/list";
	}

	// -- 导刊信息-详情
	public static String getGuideInfoDetail(String id) {
		return http + "/party/login/guider/html?id=" + id;
	}

	// -- 投稿信息-列表
	public static String getContributionInfoList() {
		return http + "/party/login/contribution/list";
	}

	// -- 投稿信息-详情
	public static String getContributionInfoDetail(String id) {
		return http + "/party/login/contribution/html?id=" + id;
	}

}
